package com.tesis_2.MO;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MOReserva {
	
	private Integer id;
	private Date rdate;
	private Date rtime;
	private Integer qty;
	private Integer table_id;
	private Integer qtytable;
	private Integer status;
	private Integer restaurant_id;
	private Integer local_id;
	private String user;
	private String restaurant_name;
	private String local_name;
	private Date created_at;
	private Date updated_at;
	
	public String getFormatedRDate()
	{
		//this.rdate.setYear(this.rdate.getYear()-1900);
		String date = new SimpleDateFormat("yyyy-MM-dd").format(this.rdate);
				//this.rdate.getYear()+"-"+this.rdate.getMonth()+"-"+this.rdate.getDay();
		return date;
		
	}
	
	public String getFormatedRTime()
	{
		String time = new SimpleDateFormat("HH:mm").format(this.rtime); 
				//this.rtime.getHours()+":"+this.rtime.getMinutes();
		return time;
	}
	
	public Date getRdate() {
		return rdate;
	}
	public void setRdate(Date rdate) {
		this.rdate = rdate;
	}
	public Date getRtime() {
		return rtime;
	}
	public void setRtime(Date rtime) {
		this.rtime = rtime;
	}
	public Integer getQty() {
		return qty;
	}
	public void setQty(Integer qty) {
		this.qty = qty;
	}
	public Integer getTable_id() {
		return table_id;
	}
	public void setTable_id(Integer table_id) {
		this.table_id = table_id;
	}
	public Integer getQtytable() {
		return qtytable;
	}
	public void setQtytable(Integer qtytable) {
		this.qtytable = qtytable;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getCreated_at() {
		return created_at;
	}
	public void setCreated_at(Date created_at) {
		this.created_at = created_at;
	}
	public Date getUpdated_at() {
		return updated_at;
	}
	public void setUpdated_at(Date updated_at) {
		this.updated_at = updated_at;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getLocal_id() {
		return local_id;
	}

	public void setLocal_id(Integer local_id) {
		this.local_id = local_id;
	}

	public Integer getRestaurant_id() {
		return restaurant_id;
	}

	public void setRestaurant_id(Integer restaurant_id) {
		this.restaurant_id = restaurant_id;
	}

	public String getRestaurant_name() {
		return restaurant_name;
	}

	public void setRestaurant_name(String restaurant_name) {
		this.restaurant_name = restaurant_name;
	}

	public String getLocal_name() {
		return local_name;
	}

	public void setLocal_name(String local_name) {
		this.local_name = local_name;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}




}
